package the.workshop.bu.dto.req;

import lombok.Data;
import org.springframework.util.StringUtils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Data
public class MobileCheckExecuteReq implements Serializable {
    private static final long serialVersionUID = 1941043209377245866L;

    private int checkType;
    private int bizType;
    private String ids;
    private List<Integer> idList;

    public void setIds(String ids) {
        this.ids = ids;

        if (StringUtils.hasText(ids)) {
            idList = new ArrayList(Arrays.asList(ids.split(",")));
        }
    }
}
